/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package koor.persistent;

import java.util.HashMap;
import java.util.List;

/**
 *
 * @author Admin
 */
public interface BaseDAO<T> {

    public void setClazz(final Class<T> clazzToSet);

    public T findOne(final Long id);

    public List<T> findAll();

    public long save(T entity);

    public void update(T entity);

    public void delete(T entity);

    public void deleteById(Long entityId);
    
    public List<T> findByCriteria(String param, String name);
    
    public List<T> findByCriteria(HashMap<String,String> params);
    
    public List<T> findByName(String string);

}
